package com.wnxy.eleba.entity;

import java.math.BigDecimal;

public class Dishes {
    private Integer id;

    /**
    * 商家编号
    */
    private Integer sjId;

    /**
    * 菜品类型
    */
    private String dishesType;

    /**
    * 菜品名称
    */
    private String dishesName;

    /**
    * 菜品图片
    */
    private String dishesImage;

    /**
    * 菜品价格
    */
    private BigDecimal dishesPrice;

    /**
    * 商品库存
    */
    private Integer dishesStock;

    /**
    * 菜品销量
    */
    private Integer dishesNum;

    /**
    * 菜品状态(未上架0/已上架1 )
    */
    private Integer dishesStatus;

    /**
    * 菜品描述
    */
    private String dishesDescribe;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSjId() {
        return sjId;
    }

    public void setSjId(Integer sjId) {
        this.sjId = sjId;
    }

    public String getDishesType() {
        return dishesType;
    }

    public void setDishesType(String dishesType) {
        this.dishesType = dishesType;
    }

    public String getDishesName() {
        return dishesName;
    }

    public void setDishesName(String dishesName) {
        this.dishesName = dishesName;
    }

    public String getDishesImage() {
        return dishesImage;
    }

    public void setDishesImage(String dishesImage) {
        this.dishesImage = dishesImage;
    }

    public BigDecimal getDishesPrice() {
        return dishesPrice;
    }

    public void setDishesPrice(BigDecimal dishesPrice) {
        this.dishesPrice = dishesPrice;
    }

    public Integer getDishesStock() {
        return dishesStock;
    }

    public void setDishesStock(Integer dishesStock) {
        this.dishesStock = dishesStock;
    }

    public Integer getDishesNum() {
        return dishesNum;
    }

    public void setDishesNum(Integer dishesNum) {
        this.dishesNum = dishesNum;
    }

    public Integer getDishesStatus() {
        return dishesStatus;
    }

    public void setDishesStatus(Integer dishesStatus) {
        this.dishesStatus = dishesStatus;
    }

    public String getDishesDescribe() {
        return dishesDescribe;
    }

    public void setDishesDescribe(String dishesDescribe) {
        this.dishesDescribe = dishesDescribe;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sjId=").append(sjId);
        sb.append(", dishesType=").append(dishesType);
        sb.append(", dishesName=").append(dishesName);
        sb.append(", dishesImage=").append(dishesImage);
        sb.append(", dishesPrice=").append(dishesPrice);
        sb.append(", dishesStock=").append(dishesStock);
        sb.append(", dishesNum=").append(dishesNum);
        sb.append(", dishesStatus=").append(dishesStatus);
        sb.append(", dishesDescribe=").append(dishesDescribe);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Dishes other = (Dishes) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSjId() == null ? other.getSjId() == null : this.getSjId().equals(other.getSjId()))
            && (this.getDishesType() == null ? other.getDishesType() == null : this.getDishesType().equals(other.getDishesType()))
            && (this.getDishesName() == null ? other.getDishesName() == null : this.getDishesName().equals(other.getDishesName()))
            && (this.getDishesImage() == null ? other.getDishesImage() == null : this.getDishesImage().equals(other.getDishesImage()))
            && (this.getDishesPrice() == null ? other.getDishesPrice() == null : this.getDishesPrice().equals(other.getDishesPrice()))
            && (this.getDishesStock() == null ? other.getDishesStock() == null : this.getDishesStock().equals(other.getDishesStock()))
            && (this.getDishesNum() == null ? other.getDishesNum() == null : this.getDishesNum().equals(other.getDishesNum()))
            && (this.getDishesStatus() == null ? other.getDishesStatus() == null : this.getDishesStatus().equals(other.getDishesStatus()))
            && (this.getDishesDescribe() == null ? other.getDishesDescribe() == null : this.getDishesDescribe().equals(other.getDishesDescribe()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSjId() == null) ? 0 : getSjId().hashCode());
        result = prime * result + ((getDishesType() == null) ? 0 : getDishesType().hashCode());
        result = prime * result + ((getDishesName() == null) ? 0 : getDishesName().hashCode());
        result = prime * result + ((getDishesImage() == null) ? 0 : getDishesImage().hashCode());
        result = prime * result + ((getDishesPrice() == null) ? 0 : getDishesPrice().hashCode());
        result = prime * result + ((getDishesStock() == null) ? 0 : getDishesStock().hashCode());
        result = prime * result + ((getDishesNum() == null) ? 0 : getDishesNum().hashCode());
        result = prime * result + ((getDishesStatus() == null) ? 0 : getDishesStatus().hashCode());
        result = prime * result + ((getDishesDescribe() == null) ? 0 : getDishesDescribe().hashCode());
        return result;
    }
}